package cn.tedu.springmvc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cart")
public class CartController {

    @RequestMapping("/add.do")
    public String add(Long id) {
        id.toString();
        return "OK";
    }

    @RequestMapping("/delete.do")
    public String delete(String id) {
        Long.valueOf(id);
        return "OK";
    }

}
